<template>
  <div class="useCases-item">
    <h3 class="text-purple-1300 text-22 leading-7 font-semibold break-words w-full">
      {{$t('vs_useCasesFor',{toolName: $websiteName(toolData)})}}
    </h3>
    <div class="mt-7"
      v-if="website && hasRealVal(website.use_cases) && website.use_cases.length > 0">
      <ul class="space-y-4">
        <li v-for="(item,key) in website.use_cases"
          :key="key">
          <div class="block px-5 py-4 text-base text-purple-1300 border border-purple-1300 rounded  truncate">
            {{item}}
          </div>
        </li>
      </ul>
    </div>
    <el-empty v-else
      :description="$t('vs_noData')"></el-empty>
  </div>
</template>

<script>
import { mapState } from 'vuex'
export default {
  name: 'CompareVsUseCases',
  props: {
    toolData: {
      type: Object | null,
      default() {
        return {}
      },
    },
    website: {
      type: Object | null,
      default() {
        return {}
      },
    },
  },
  computed: {
    ...mapState({
      locale: (state) => state.locale,
    }),
  },
}
</script>
